	.file	1 "tp0.c"
	.section .mdebug.abi32
	.previous
	.abicalls
	.rdata
	.align	2
$LC0:
	.ascii	"Usage:\n\000"
	.align	2
$LC1:
	.ascii	"%s -h\n\000"
	.align	2
$LC2:
	.ascii	"%s -V\n\000"
	.align	2
$LC3:
	.ascii	"%s [options][file...]\n\000"
	.align	2
$LC4:
	.ascii	"Options:\n\000"
	.align	2
$LC5:
	.ascii	"%s -V, --version\t\t\tPrint version and quit.\n\000"
	.align	2
$LC6:
	.ascii	"%s -h, --help\t\t\tPrint this information and quit.\n\000"
	.align	2
$LC7:
	.ascii	"%s -q, --quick\t\t\tUse the quicksort algorithm.\n\000"
	.align	2
$LC8:
	.ascii	"%s -s, --stooge\t\t\tUse the stoogesort algorithm.\n\000"
	.align	2
$LC9:
	.ascii	"Examples:\n\000"
	.align	2
$LC10:
	.ascii	"%s -q myFile.txt\n\000"
	.align	2
$LC11:
	.ascii	"%s -s myFile.txt\n\000"
	.text
	.align	2
	.globl	usage
	.ent	usage
usage:
	.frame	$fp,40,$ra		# vars= 0, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,40
	.cprestore 16
	sw	$ra,32($sp)
	sw	$fp,28($sp)
	sw	$gp,24($sp)
	move	$fp,$sp
	sw	$a0,40($fp)
	la	$a0,__sF+88
	la	$a1,$LC0
	la	$t9,fprintf
	jal	$ra,$t9
	la	$a0,__sF+88
	la	$a1,$LC1
	lw	$a2,40($fp)
	la	$t9,fprintf
	jal	$ra,$t9
	la	$a0,__sF+88
	la	$a1,$LC2
	lw	$a2,40($fp)
	la	$t9,fprintf
	jal	$ra,$t9
	la	$a0,__sF+88
	la	$a1,$LC3
	lw	$a2,40($fp)
	la	$t9,fprintf
	jal	$ra,$t9
	la	$a0,__sF+88
	la	$a1,$LC4
	la	$t9,fprintf
	jal	$ra,$t9
	la	$a0,__sF+88
	la	$a1,$LC5
	lw	$a2,40($fp)
	la	$t9,fprintf
	jal	$ra,$t9
	la	$a0,__sF+88
	la	$a1,$LC6
	lw	$a2,40($fp)
	la	$t9,fprintf
	jal	$ra,$t9
	la	$a0,__sF+88
	la	$a1,$LC7
	lw	$a2,40($fp)
	la	$t9,fprintf
	jal	$ra,$t9
	la	$a0,__sF+88
	la	$a1,$LC8
	lw	$a2,40($fp)
	la	$t9,fprintf
	jal	$ra,$t9
	la	$a0,__sF+88
	la	$a1,$LC9
	la	$t9,fprintf
	jal	$ra,$t9
	la	$a0,__sF+88
	la	$a1,$LC10
	lw	$a2,40($fp)
	la	$t9,fprintf
	jal	$ra,$t9
	la	$a0,__sF+88
	la	$a1,$LC11
	lw	$a2,40($fp)
	la	$t9,fprintf
	jal	$ra,$t9
	move	$sp,$fp
	lw	$ra,32($sp)
	lw	$fp,28($sp)
	addu	$sp,$sp,40
	j	$ra
	.end	usage
	.size	usage, .-usage
	.align	2
	.globl	linecmp
	.ent	linecmp
linecmp:
	.frame	$fp,32,$ra		# vars= 16, regs= 2/0, args= 0, extra= 8
	.mask	0x50000000,-4
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,32
	.cprestore 0
	sw	$fp,28($sp)
	sw	$gp,24($sp)
	move	$fp,$sp
	sw	$a0,32($fp)
	sw	$a1,36($fp)
	li	$v0,97			# 0x61
	sw	$v0,8($fp)
	li	$v0,98			# 0x62
	sw	$v0,12($fp)
$L19:
	lw	$v1,8($fp)
	li	$v0,10			# 0xa
	beq	$v1,$v0,$L20
	lw	$v1,12($fp)
	li	$v0,10			# 0xa
	bne	$v1,$v0,$L21
	b	$L20
$L21:
	lw	$v0,32($fp)
	move	$v1,$v0
	lw	$v1,0($v1)
	sw	$v1,8($fp)
	addu	$v0,$v0,4
	sw	$v0,32($fp)
	addu	$a0,$fp,36
	lw	$v0,0($a0)
	move	$v1,$v0
	lw	$v1,0($v1)
	sw	$v1,12($fp)
	addu	$v0,$v0,4
	sw	$v0,0($a0)
	lw	$v1,8($fp)
	lw	$v0,12($fp)
	slt	$v0,$v1,$v0
	beq	$v0,$zero,$L23
	li	$v0,-1			# 0xffffffffffffffff
	sw	$v0,16($fp)
	b	$L18
$L23:
	lw	$v0,8($fp)
	lw	$v1,12($fp)
	slt	$v0,$v1,$v0
	beq	$v0,$zero,$L19
	li	$v0,1			# 0x1
	sw	$v0,16($fp)
	b	$L18
$L20:
	lw	$v1,8($fp)
	li	$v0,10			# 0xa
	bne	$v1,$v0,$L26
	lw	$v1,12($fp)
	li	$v0,10			# 0xa
	bne	$v1,$v0,$L26
	sw	$zero,16($fp)
	b	$L18
$L26:
	lw	$v1,8($fp)
	li	$v0,10			# 0xa
	bne	$v1,$v0,$L27
	li	$v0,-1			# 0xffffffffffffffff
	sw	$v0,16($fp)
	b	$L18
$L27:
	li	$v0,1			# 0x1
	sw	$v0,16($fp)
$L18:
	lw	$v0,16($fp)
	move	$sp,$fp
	lw	$fp,28($sp)
	addu	$sp,$sp,32
	j	$ra
	.end	linecmp
	.size	linecmp, .-linecmp
	.rdata
	.align	2
$LC12:
	.ascii	"Error: file pointer is null.\000"
	.align	2
$LC13:
	.ascii	"Error allocating memory for line buffer.\000"
	.align	2
$LC14:
	.ascii	"Error reallocating space for line buffer.\000"
	.text
	.align	2
	.globl	readLine
	.ent	readLine
readLine:
	.frame	$fp,64,$ra		# vars= 24, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,64
	.cprestore 16
	sw	$ra,56($sp)
	sw	$fp,52($sp)
	sw	$gp,48($sp)
	move	$fp,$sp
	sw	$a0,64($fp)
	lw	$v0,64($fp)
	bne	$v0,$zero,$L29
	la	$a0,$LC12
	la	$t9,printf
	jal	$ra,$t9
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L29:
	li	$v0,128			# 0x80
	sw	$v0,24($fp)
	lw	$v0,24($fp)
	sll	$v0,$v0,2
	move	$a0,$v0
	la	$t9,malloc
	jal	$ra,$t9
	sw	$v0,28($fp)
	lw	$v0,28($fp)
	bne	$v0,$zero,$L30
	la	$a0,$LC13
	la	$t9,printf
	jal	$ra,$t9
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L30:
	sw	$zero,32($fp)
	addu	$v0,$fp,32
	move	$a0,$v0
	li	$a1,1			# 0x1
	li	$a2,1			# 0x1
	lw	$a3,64($fp)
	la	$t9,fread
	jal	$ra,$t9
	sw	$v0,36($fp)
	sw	$zero,40($fp)
$L31:
	lw	$v1,36($fp)
	li	$v0,1			# 0x1
	bne	$v1,$v0,$L32
	lw	$v1,32($fp)
	li	$v0,10			# 0xa
	bne	$v1,$v0,$L33
	b	$L32
$L33:
	lw	$v1,40($fp)
	lw	$v0,24($fp)
	bne	$v1,$v0,$L35
	lw	$v0,24($fp)
	addu	$v0,$v0,128
	sw	$v0,24($fp)
	lw	$v0,24($fp)
	sll	$v0,$v0,2
	lw	$a0,28($fp)
	move	$a1,$v0
	la	$t9,realloc
	jal	$ra,$t9
	sw	$v0,28($fp)
	lw	$v0,28($fp)
	bne	$v0,$zero,$L35
	la	$a0,$LC14
	la	$t9,printf
	jal	$ra,$t9
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L35:
	lw	$v0,40($fp)
	sll	$v1,$v0,2
	lw	$v0,28($fp)
	addu	$v1,$v1,$v0
	lw	$v0,32($fp)
	sw	$v0,0($v1)
	lw	$v0,40($fp)
	addu	$v0,$v0,1
	sw	$v0,40($fp)
	sw	$zero,32($fp)
	addu	$v0,$fp,32
	move	$a0,$v0
	li	$a1,1			# 0x1
	li	$a2,1			# 0x1
	lw	$a3,64($fp)
	la	$t9,fread
	jal	$ra,$t9
	sw	$v0,36($fp)
	b	$L31
$L32:
	lw	$v1,36($fp)
	li	$v0,1			# 0x1
	bne	$v1,$v0,$L37
	lw	$v0,40($fp)
	sll	$v1,$v0,2
	lw	$v0,28($fp)
	addu	$v1,$v1,$v0
	lw	$v0,32($fp)
	sw	$v0,0($v1)
	lw	$v0,40($fp)
	sll	$v0,$v0,2
	addu	$v0,$v0,4
	lw	$a0,28($fp)
	move	$a1,$v0
	la	$t9,realloc
	jal	$ra,$t9
	sw	$v0,28($fp)
	b	$L38
$L37:
	lw	$v0,40($fp)
	sll	$v1,$v0,2
	lw	$v0,28($fp)
	addu	$v1,$v1,$v0
	li	$v0,10			# 0xa
	sw	$v0,0($v1)
$L38:
	lw	$v0,28($fp)
	move	$sp,$fp
	lw	$ra,56($sp)
	lw	$fp,52($sp)
	addu	$sp,$sp,64
	j	$ra
	.end	readLine
	.size	readLine, .-readLine
	.align	2
	.globl	ordenar_st
	.ent	ordenar_st
ordenar_st:
	.frame	$fp,48,$ra		# vars= 8, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,48
	.cprestore 16
	sw	$ra,40($sp)
	sw	$fp,36($sp)
	sw	$gp,32($sp)
	move	$fp,$sp
	sw	$a0,48($fp)
	sw	$a1,52($fp)
	sw	$a2,56($fp)
	lw	$v0,52($fp)
	sll	$v1,$v0,2
	lw	$v0,48($fp)
	addu	$a0,$v1,$v0
	lw	$v0,56($fp)
	sll	$v1,$v0,2
	lw	$v0,48($fp)
	addu	$v0,$v1,$v0
	lw	$a0,0($a0)
	lw	$a1,0($v0)
	la	$t9,linecmp
	jal	$ra,$t9
	blez	$v0,$L40
	lw	$v0,52($fp) #i
	sll	$v1,$v0,2   #i*4
	lw	$v0,48($fp) #**array
	addu	$v0,$v1,$v0 #i*4 + base
	lw	$v0,0($v0)  # *i
	sw	$v0,28($fp) #temp=*i
	lw	$v0,52($fp) #i
	sll	$v1,$v0,2   #i*4
	lw	$v0,48($fp) #**array
	addu	$a0,$v1,$v0 #i*4 + base
	lw	$v0,56($fp) #j
	sll	$v1,$v0,2   #j*4
	lw	$v0,48($fp) #**array
	addu	$v0,$v1,$v0 #j*4 + base
	lw	$v0,0($v0)  # *(j*4 + base)
	sw	$v0,0($a0)  #array[i]=*(j*4 + base)
	lw	$v0,56($fp) #j
	sll	$v1,$v0,2   #j*4
	lw	$v0,48($fp) #**array
	addu	$v1,$v1,$v0
	lw	$v0,28($fp)
	sw	$v0,0($v1)
$L40:
	lw	$v0,52($fp)
	addu	$v1,$v0,1
	lw	$v0,56($fp)
	slt	$v0,$v1,$v0
	bne	$v0,$zero,$L41
	b	$L39
$L41:
	lw	$v1,56($fp) #j
	lw	$v0,52($fp) #i
	subu	$v0,$v1,$v0 # j - i
	addu	$a0,$v0,1 # a0 = j - i + 1
	li	$v0,1431633920			# 0x55550000
	ori	$v0,$v0,0x5556
	mult	$a0,$v0
	mfhi	$v1
	sra	$v0,$a0,31 #corrimiento a derecha de 31 de a0 y lo guarda en v0-> se queda con el signo aparentemente
	subu	$v0,$v1,$v0 #v1 resultado del producto, le agrega el signo?
	sw	$v0,24($fp) #guarda k en 24
	lw	$v1,56($fp)
	lw	$v0,24($fp)
	subu	$v0,$v1,$v0
	lw	$a0,48($fp)
	lw	$a1,52($fp)
	move	$a2,$v0
	la	$t9,ordenar_st
	jal	$ra,$t9
	lw	$v1,52($fp)
	lw	$v0,24($fp)
	addu	$v0,$v1,$v0
	lw	$a0,48($fp)
	move	$a1,$v0
	lw	$a2,56($fp)
	la	$t9,ordenar_st
	jal	$ra,$t9
	lw	$v1,56($fp)
	lw	$v0,24($fp)
	subu	$v0,$v1,$v0
	lw	$a0,48($fp)
	lw	$a1,52($fp)
	move	$a2,$v0
	la	$t9,ordenar_st
	jal	$ra,$t9
$L39:
	move	$sp,$fp
	lw	$ra,40($sp)
	lw	$fp,36($sp)
	addu	$sp,$sp,48
	j	$ra
	.end	ordenar_st
	.size	ordenar_st, .-ordenar_st
	.align	2
	.globl	pivot_qs
	.ent	pivot_qs
pivot_qs:
	.frame	$fp,56,$ra		# vars= 16, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,56
	.cprestore 16
	sw	$ra,48($sp)
	sw	$fp,44($sp)
	sw	$gp,40($sp)
	move	$fp,$sp
	sw	$a0,56($fp)
	sw	$a1,60($fp)
	sw	$a2,64($fp)
	lw	$v0,60($fp)
	sw	$v0,28($fp)
	lw	$v0,28($fp)
	sll	$v1,$v0,2
	lw	$v0,56($fp)
	addu	$v0,$v1,$v0
	lw	$v0,0($v0)
	sw	$v0,32($fp)
	lw	$v0,60($fp)
	addu	$v0,$v0,1
	sw	$v0,24($fp)
$L43:
	lw	$v0,24($fp)
	lw	$v1,64($fp)
	slt	$v0,$v1,$v0
	beq	$v0,$zero,$L46
	b	$L44
$L46:
	lw	$v0,24($fp)
	sll	$v1,$v0,2
	lw	$v0,56($fp)
	addu	$v0,$v1,$v0
	lw	$a0,0($v0)
	lw	$a1,32($fp)
	la	$t9,linecmp
	jal	$ra,$t9
	bgez	$v0,$L45
	lw	$v0,28($fp)
	addu	$v0,$v0,1
	sw	$v0,28($fp)
	lw	$v0,24($fp)
	sll	$v1,$v0,2
	lw	$v0,56($fp)
	addu	$v0,$v1,$v0
	lw	$v0,0($v0)
	sw	$v0,36($fp)
	lw	$v0,24($fp)
	sll	$v1,$v0,2
	lw	$v0,56($fp)
	addu	$a0,$v1,$v0
	lw	$v0,28($fp)
	sll	$v1,$v0,2
	lw	$v0,56($fp)
	addu	$v0,$v1,$v0
	lw	$v0,0($v0)
	sw	$v0,0($a0)
	lw	$v0,28($fp)
	sll	$v1,$v0,2
	lw	$v0,56($fp)
	addu	$v1,$v1,$v0
	lw	$v0,36($fp)
	sw	$v0,0($v1)
$L45:
	lw	$v0,24($fp)
	addu	$v0,$v0,1
	sw	$v0,24($fp)
	b	$L43
$L44:
	lw	$v0,60($fp)
	sll	$v1,$v0,2
	lw	$v0,56($fp)
	addu	$v0,$v1,$v0
	lw	$v0,0($v0)
	sw	$v0,36($fp)
	lw	$v0,60($fp)
	sll	$v1,$v0,2
	lw	$v0,56($fp)
	addu	$a0,$v1,$v0
	lw	$v0,28($fp)
	sll	$v1,$v0,2
	lw	$v0,56($fp)
	addu	$v0,$v1,$v0
	lw	$v0,0($v0)
	sw	$v0,0($a0)
	lw	$v0,28($fp)
	sll	$v1,$v0,2
	lw	$v0,56($fp)
	addu	$v1,$v1,$v0
	lw	$v0,36($fp)
	sw	$v0,0($v1)
	lw	$v0,28($fp)
	move	$sp,$fp
	lw	$ra,48($sp)
	lw	$fp,44($sp)
	addu	$sp,$sp,56
	j	$ra
	.end	pivot_qs
	.size	pivot_qs, .-pivot_qs
	.align	2
	.globl	ordenar_qs
	.ent	ordenar_qs
ordenar_qs:
	.frame	$fp,48,$ra		# vars= 8, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,48
	.cprestore 16
	sw	$ra,40($sp)
	sw	$fp,36($sp)
	sw	$gp,32($sp)
	move	$fp,$sp
	sw	$a0,48($fp)
	sw	$a1,52($fp)
	sw	$a2,56($fp)
	lw	$v0,52($fp)
	lw	$v1,56($fp)
	slt	$v0,$v0,$v1
	beq	$v0,$zero,$L48
	lw	$a0,48($fp)
	lw	$a1,52($fp)
	lw	$a2,56($fp)
	la	$t9,pivot_qs
	jal	$ra,$t9
	sw	$v0,24($fp)
	lw	$v0,24($fp)
	addu	$v0,$v0,-1
	lw	$a0,48($fp)
	lw	$a1,52($fp)
	move	$a2,$v0
	la	$t9,ordenar_qs
	jal	$ra,$t9
	lw	$v0,24($fp)
	addu	$v0,$v0,1
	lw	$a0,48($fp)
	move	$a1,$v0
	lw	$a2,56($fp)
	la	$t9,ordenar_qs
	jal	$ra,$t9
$L48:
	move	$sp,$fp
	lw	$ra,40($sp)
	lw	$fp,36($sp)
	addu	$sp,$sp,48
	j	$ra
	.end	ordenar_qs
	.size	ordenar_qs, .-ordenar_qs
	.rdata
	.align	2
$LC15:
	.ascii	"%c\000"
	.text
	.align	2
	.globl	int2String
	.ent	int2String
int2String:
	.frame	$fp,48,$ra		# vars= 8, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,48
	.cprestore 16
	sw	$ra,40($sp)
	sw	$fp,36($sp)
	sw	$gp,32($sp)
	move	$fp,$sp
	sw	$a0,48($fp)
	sw	$a1,52($fp)
	lw	$v0,48($fp)
	lw	$v0,0($v0)
	sw	$v0,24($fp)
	sw	$zero,28($fp)
$L51:
	lw	$v1,24($fp)
	li	$v0,10			# 0xa
	bne	$v1,$v0,$L53
	b	$L52
$L53:
	addu	$a1,$fp,28
	lw	$v1,0($a1)
	move	$v0,$v1
	sll	$a0,$v0,2
	lw	$v0,48($fp)
	addu	$v0,$a0,$v0
	lw	$v0,0($v0)
	sw	$v0,24($fp)
	addu	$v1,$v1,1
	sw	$v1,0($a1)
	lw	$v1,24($fp)
	li	$v0,10			# 0xa
	beq	$v1,$v0,$L54
	la	$a0,$LC15
	lw	$a1,24($fp)
	la	$t9,printf
	jal	$ra,$t9
	b	$L51
$L54:
	lw	$v0,52($fp)
	bne	$v0,$zero,$L51
	la	$a0,$LC15
	lw	$a1,24($fp)
	la	$t9,printf
	jal	$ra,$t9
	b	$L51
$L52:
	lw	$v0,28($fp)
	bne	$v0,$zero,$L50
	lw	$v0,52($fp)
	bne	$v0,$zero,$L50
	la	$a0,$LC15
	lw	$a1,24($fp)
	la	$t9,printf
	jal	$ra,$t9
$L50:
	move	$sp,$fp
	lw	$ra,40($sp)
	lw	$fp,36($sp)
	addu	$sp,$sp,48
	j	$ra
	.end	int2String
	.size	int2String, .-int2String
	.rdata
	.align	2
$LC16:
	.ascii	"rb\000"
	.text
	.align	2
	.globl	sort
	.ent	sort
sort:
	.frame	$fp,64,$ra		# vars= 24, regs= 3/0, args= 16, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,64
	.cprestore 16
	sw	$ra,56($sp)
	sw	$fp,52($sp)
	sw	$gp,48($sp)
	move	$fp,$sp
	sw	$a0,64($fp)
	sw	$a1,68($fp)
	lw	$a0,68($fp)
	la	$a1,$LC16
	la	$t9,fdopen
	jal	$ra,$t9
	sw	$v0,24($fp)
	sw	$zero,28($fp)
	li	$a0,4			# 0x4
	la	$t9,malloc
	jal	$ra,$t9
	sw	$v0,32($fp)
	sw	$zero,36($fp)
$L59:
	lw	$v0,24($fp)
	lhu	$v0,12($v0)
	srl	$v0,$v0,5
	andi	$v0,$v0,0x1
	beq	$v0,$zero,$L61
	b	$L60
$L61:
	lw	$v0,36($fp)
	sll	$v0,$v0,2
	addu	$v0,$v0,4
	lw	$a0,32($fp)
	move	$a1,$v0
	la	$t9,realloc
	jal	$ra,$t9
	sw	$v0,32($fp)
	lw	$a0,24($fp)
	la	$t9,readLine
	jal	$ra,$t9
	sw	$v0,28($fp)
	addu	$a1,$fp,36
	lw	$v1,0($a1)
	move	$v0,$v1
	sll	$a0,$v0,2
	lw	$v0,32($fp)
	addu	$a0,$a0,$v0
	lw	$v0,28($fp)
	sw	$v0,0($a0)
	addu	$v1,$v1,1
	sw	$v1,0($a1)
	b	$L59
$L60:
	lw	$v0,64($fp)
	bne	$v0,$zero,$L62
	lw	$v0,36($fp)
	addu	$v0,$v0,-1
	lw	$a0,32($fp)
	move	$a1,$zero
	move	$a2,$v0
	la	$t9,ordenar_qs
	jal	$ra,$t9
	b	$L63
$L62:
	lw	$v0,36($fp)
	addu	$v0,$v0,-1
	lw	$a0,32($fp)
	move	$a1,$zero
	move	$a2,$v0
	la	$t9,ordenar_st
	jal	$ra,$t9
$L63:
	sw	$zero,40($fp)
$L64:
	lw	$v0,40($fp)
	lw	$v1,36($fp)
	slt	$v0,$v0,$v1
	bne	$v0,$zero,$L67
	b	$L65
$L67:
	lw	$v0,40($fp)
	sll	$v1,$v0,2
	lw	$v0,32($fp)
	addu	$v0,$v1,$v0
	lw	$v0,0($v0)
	sw	$v0,28($fp)
	lw	$v0,36($fp)
	addu	$v1,$v0,-1
	lw	$v0,40($fp)
	slt	$v0,$v0,$v1
	beq	$v0,$zero,$L68
	lw	$a0,28($fp)
	move	$a1,$zero
	la	$t9,int2String
	jal	$ra,$t9
	b	$L69
$L68:
	lw	$a0,28($fp)
	li	$a1,1			# 0x1
	la	$t9,int2String
	jal	$ra,$t9
$L69:
	lw	$a0,28($fp)
	la	$t9,free
	jal	$ra,$t9
	lw	$v0,40($fp)
	addu	$v0,$v0,1
	sw	$v0,40($fp)
	b	$L64
$L65:
	lw	$a0,32($fp)
	la	$t9,free
	jal	$ra,$t9
	lw	$a0,24($fp)
	la	$t9,fclose
	jal	$ra,$t9
	li	$v0,1			# 0x1
	move	$sp,$fp
	lw	$ra,56($sp)
	lw	$fp,52($sp)
	addu	$sp,$sp,64
	j	$ra
	.end	sort
	.size	sort, .-sort
	.rdata
	.align	2
$LC17:
	.ascii	"version\000"
	.align	2
$LC18:
	.ascii	"help\000"
	.align	2
$LC19:
	.ascii	"quick\000"
	.align	2
$LC20:
	.ascii	"stooge\000"
	.data
	.align	2
	.type	longopts.0, @object
	.size	longopts.0, 80
longopts.0:
	.word	$LC17
	.word	0
	.word	0
	.word	86
	.word	$LC18
	.word	0
	.word	0
	.word	104
	.word	$LC19
	.word	1
	.word	0
	.word	113
	.word	$LC20
	.word	1
	.word	0
	.word	115
	.word	0
	.word	0
	.word	0
	.word	0
	.rdata
	.align	2
$LC21:
	.ascii	"q:s:Vh\000"
	.align	2
$LC22:
	.ascii	"unable to open %s\n\000"
	.align	2
$LC23:
	.ascii	"%s, version 0.1\n\000"
	.align	2
$LC24:
	.ascii	"DEFAULT %c\n\000"
	.text
	.align	2
	.globl	main
	.ent	main
main:
	.frame	$fp,64,$ra		# vars= 16, regs= 3/0, args= 24, extra= 8
	.mask	0xd0000000,-8
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$t9
	.set	reorder
	subu	$sp,$sp,64
	.cprestore 24
	sw	$ra,56($sp)
	sw	$fp,52($sp)
	sw	$gp,48($sp)
	move	$fp,$sp
	sw	$a0,64($fp)
	sw	$a1,68($fp)
	sw	$zero,32($fp)
	sw	$zero,40($fp)
$L71:
	sw	$zero,16($sp)
	lw	$a0,64($fp)
	lw	$a1,68($fp)
	la	$a2,$LC21
	la	$a3,longopts.0
	la	$t9,getopt_long
	jal	$ra,$t9
	sw	$v0,36($fp)
	lw	$v1,36($fp)
	li	$v0,-1			# 0xffffffffffffffff
	bne	$v1,$v0,$L73
	b	$L72
$L73:
	lw	$v0,36($fp)
	sw	$v0,44($fp)
	li	$v0,104			# 0x68
	lw	$v1,44($fp)
	beq	$v1,$v0,$L79
	lw	$v1,44($fp)
	slt	$v0,$v1,105
	beq	$v0,$zero,$L83
	li	$v0,86			# 0x56
	lw	$v1,44($fp)
	beq	$v1,$v0,$L80
	b	$L81
$L83:
	li	$v0,113			# 0x71
	lw	$v1,44($fp)
	beq	$v1,$v0,$L75
	li	$v0,115			# 0x73
	lw	$v1,44($fp)
	beq	$v1,$v0,$L77
	b	$L81
$L75:
	lw	$a0,optarg
	move	$a1,$zero
	move	$a2,$zero
	la	$t9,open
	jal	$ra,$t9
	sw	$v0,32($fp)
	lw	$v1,32($fp)
	li	$v0,-1			# 0xffffffffffffffff
	bne	$v1,$v0,$L76
	la	$a0,__sF+176
	la	$a1,$LC22
	lw	$a2,optarg
	la	$t9,fprintf
	jal	$ra,$t9
	lw	$v0,68($fp)
	lw	$a0,0($v0)
	la	$t9,usage
	jal	$ra,$t9
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L76:
	move	$a0,$zero
	lw	$a1,32($fp)
	la	$t9,sort
	jal	$ra,$t9
	sw	$v0,40($fp)
	b	$L71
$L77:
	lw	$a0,optarg
	move	$a1,$zero
	move	$a2,$zero
	la	$t9,open
	jal	$ra,$t9
	sw	$v0,32($fp)
	lw	$v1,32($fp)
	li	$v0,-1			# 0xffffffffffffffff
	bne	$v1,$v0,$L78
	la	$a0,__sF+176
	la	$a1,$LC22
	lw	$a2,optarg
	la	$t9,fprintf
	jal	$ra,$t9
	lw	$v0,68($fp)
	lw	$a0,0($v0)
	la	$t9,usage
	jal	$ra,$t9
	li	$a0,1			# 0x1
	la	$t9,exit
	jal	$ra,$t9
$L78:
	li	$a0,1			# 0x1
	lw	$a1,32($fp)
	la	$t9,sort
	jal	$ra,$t9
	sw	$v0,40($fp)
	b	$L71
$L79:
	lw	$v0,68($fp)
	lw	$a0,0($v0)
	la	$t9,usage
	jal	$ra,$t9
	move	$a0,$zero
	la	$t9,exit
	jal	$ra,$t9
$L80:
	lw	$v0,68($fp)
	la	$a0,$LC23
	lw	$a1,0($v0)
	la	$t9,printf
	jal	$ra,$t9
	move	$a0,$zero
	la	$t9,exit
	jal	$ra,$t9
$L81:
	la	$a0,__sF+176
	la	$a1,$LC24
	lw	$a2,36($fp)
	la	$t9,fprintf
	jal	$ra,$t9
	lw	$v0,68($fp)
	lw	$a0,0($v0)
	la	$t9,usage
	jal	$ra,$t9
	move	$a0,$zero
	la	$t9,exit
	jal	$ra,$t9
$L72:
	lw	$v0,40($fp)
	move	$sp,$fp
	lw	$ra,56($sp)
	lw	$fp,52($sp)
	addu	$sp,$sp,64
	j	$ra
	.end	main
	.size	main, .-main
	.ident	"GCC: (GNU) 3.3.3 (NetBSD nb3 20040520)"
